package cn.cs.item;
import cn.cs.es.document.AbatractESDocumentSetting;
import cn.cs.es.type.ESAnyanalyzerType;
import cn.cs.es.type.ESType;

public class ItemSearchVoSetting extends AbatractESDocumentSetting {

    @Override
    public void setProperties() {
        this.addESProperties("id", ESType.es_text, null,true);
        this.addESProperties("productName",ESType.es_text, ESAnyanalyzerType.ik_smart,true);
        this.addESProperties("productTypeId",ESType.es_text, null,true);
        this.addESProperties("productPrice",ESType.es_double, null,true);
        this.addESProperties("productInfo",ESType.es_text, ESAnyanalyzerType.ik_smart,true);
        this.addESProperties("productPic",ESType.es_text, null,true);
        this.addESProperties("location",ESType.es_point, null,true);
        this.addESProperties("saleCount",ESType.es_integer, null,true);
        this.addESProperties("productPic",ESType.es_text, null,true);
        this.addESProperties("productBelType",ESType.es_text, null,true);
        this.addESProperties("createTime",ESType.es_text, null,true);
        this.addESProperties("createdTimeLong",ESType.es_integer, null,true);
    }

    @Override
    public String getIndexName() {
        return "cs1";
    }

    @Override
    public String getTypeName() {
        return "item1";
    }


}
